package com.catt.orderdinner.service;

import com.catt.orderdinner.dataobject.TbUser;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {

    TbUser login(String username);

    TbUser login(String username, String passWord);

    List<TbUser> findAll();

    Page<TbUser> findAll(Pageable pageable);

    TbUser findOneByUserId(String id);

    void save(TbUser user);

    void del(String id);
}
